-- GENERATED SPELL FOR [Twilight Aquamancer] --


function spell0_4811(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4811', 7000, 1)
end

function spell1_4811(pUnit, Event) --@Summon Aqua Guardian,Self--
pUnit:FullCastSpellOnTarget(8372,pUnit)
pUnit:RegisterEvent('Sorts_4811', 659, 1)
end

function Sorts_4811(pUnit, Event)
local choix_sorts_4811 = math.random(0, 1)
if choix_sorts_4811 == 0 then
pUnit:RegisterEvent('spell0_4811', 1, 1)
end
if choix_sorts_4811 == 1 then
pUnit:RegisterEvent('spell1_4811', 1, 1)
end
end

function mob4811_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4811', math.random(1500, 3000), 1)
end

function mob4811_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4811_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4811_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4811, 1, 'mob4811_Action')
RegisterUnitEvent(4811, 2, 'mob4811_Leave')
RegisterUnitEvent(4811, 3, 'mob4811_Kill')
RegisterUnitEvent(4811, 4, 'mob4811_Die')
